﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GEAR_Structure.ClimateData
{
    [Serializable]
    public class Common
    {
        string locality;

        public string Locality
        {
          get { return locality; }
          set { locality = value; }
        }
        double altitude;

        public double Altitude
        {
            get { return altitude; }
            set { altitude = value; }
        }
        int gg;

        public int GG
        {
            get { return gg; }
            set { gg = value; }
        }
        char climate_zone;


        public char Climate_zone
        {
            get { return climate_zone; }
            set { climate_zone = value; }
        }

        double altitude_min;

        

        public double Altitude_min
        {
          get { return altitude_min; }
          set { altitude_min = value; }
        }

        double altitude_max;


        public double Altitude_max
        {
            get { return altitude_max; }
            set { altitude_max = value; }
        }

        double latitude;

        double longitude;


        public double Longitude
        {
            get { return longitude; }
            set { longitude = value; }
        }

        public double Latitude
        {
            get { return latitude; }
            set { latitude = value; }
        }
        /// <summary>
        /// Costruttore
        /// </summary>
        /// <param name="_locality">località</param>
        /// <param name="_altitude"> altitudine sullivello del mare [m]</param>
        /// <param name="_gg">gradi giorno</param>
        /// <param name="_climate_zone">zona climatica</param>
        public Common(string _locality, double _altitude, int _gg, char _climate_zone)
        {
            this.locality = _locality;
            this.altitude = _altitude;
            this.gg = _gg;
            this.climate_zone = _climate_zone;
        }
        /// <summary>
        ///Costruttore di copia
        /// </summary>
        /// <param name="c"> classe Comune</param>
        public Common(Common c)
        {
            this.locality = c.locality;
            this.altitude = c.altitude;
            this.gg = c.gg;
            this.climate_zone = c.climate_zone;
        }

        public Common():this("",0,0,'\0')
        {

        }
    }
}
